package com.neighbor.neighborhoodadmin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户好友关系表
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:11:23
 */
@Getter
@Setter
@TableName("user_friends")
public class UserFriends {

    /**
     * 好友关系唯一ID
     */
    @TableId(value = "friendship_id", type = IdType.AUTO)
    private Integer friendshipId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 好友用户ID
     */
    @TableField("friend_id")
    private Integer friendId;

    /**
     * 状态(1:已好友,2:已拉黑)
     */
    @TableField("status")
    private Byte status;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;
}
